package com.zky.seckill.kill.feign;

import com.zky.common.entity.OrderEntity;
import com.zky.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("group-order")
@RequestMapping("/grouporder/order")
public interface OrderFeignService {

    /**
     * 信息
     */
    @RequestMapping("/info/{orderId}")
//    @RequiresPermissions("grouporder:order:info")
    public R info(@PathVariable("orderId") Long orderId);

    /**
     * 保存
     */
    @RequestMapping("/save")
//    @RequiresPermissions("grouporder:order:save")
    public R save(@RequestBody OrderEntity order);

}
